
// const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
	lintOnSave: process.env.NODE_ENV !== 'production',
	assetsDir: 'static',
	// configureWebpack: {
	// 	plugins: [
	// 	  new HtmlWebpackPlugin({
	// 		inject: 'head'
	// 	  })
	// 	]
	//   },
	'devServer': {
		'host': 'bd.meijiabang.com',
		'port': 80,
		'proxy': {
			'/api': {
				'target': 'https://dev.meijiabang.com',
				'secure': false,
				'changeOrigin': true,
				'pathRewrite': {
					'^/api': ''
				}
			}
		},
		'open': true
	},
	css: {
		loaderOptions: {
			sass: {
				data: `@import "@/static/css/uni.scss";`
			}
		}
	}
}
